package group2assignone.ucm.manager;

import group2assignone.model.Flight;
import group2assignone.ucm.UCController;
import group2assignone.view.manager.EditFlightView;

/**
 * use case controller to edit a flight
 * @author group2
 */
public class UCEditFlight implements UCController {

    private EditFlightView editView = new EditFlightView();
    private Flight f = new Flight();

    /**
     * sets view and flight
     * @param eView
     * @param flight
     */
    public UCEditFlight(EditFlightView eView, Flight flight) {
        editView = eView;
        f = flight;
    }

    @Override
    public void run() {
        //show edit window
        //editView.loadDetails(f);
        //editView.editFlightDetails(f);
        //editView.clearShowFlightWindow();
        editView.editFlightDetails(f);
        
    }
    ;
}
